/*global define*/

define(['angular'], function (angular) {
    "use strict";

    var directive;
    directive = function () {
        return ({
            link: link
        });
        function link(scope, element, attr) {
            if (scope.$last) {
                element.ready(function () {
                    $('#pre_default').remove();
                    scope.$eval(attr.repeatFinish);
                })
            }
        }
    };
    directive.$inject = ['$animate','$location'];
    return directive;
});

